<?php ob_start();
    //$make       = Model_Listing_Attribute::one(array('_id' => $this->listing->make));
    //$model      = Model_Listing_Attribute::one(array('_id' => $this->listing->model));
    $make = $this->listing->make;
    $model = $this->listing->model;
	$internal_lng = $this->listing->getInternalLanguage();
?>
    <?php if (!empty($this->listing->make)) {echo "<dl>".$this->dtDd($this->t('Make', $internal_lng), $make->name)."</dl>";}?>
    <?php if (!empty($this->listing->model)) {echo "<dl>".$this->dtDd($this->t('Model', $internal_lng), $model->name)."</dl>";}?>
    <?php if (!empty($this->listing->capacity)) {echo "<dl>".$this->dtDd($this->t('Capacity', $internal_lng), $this->listing->capacity.'cc')."</dl>";}?>
    <?php if (!empty($this->listing->yearmanufactured)) {echo "<dl>".$this->dtDd($this->t('Year Manufactured', $internal_lng), $this->listing->yearmanufactured)."</dl>";}?>

    <?php
    if (!empty($this->listing->cartype)) {
        $views = Model_Listing_Car::getCarType();
        echo "<dl>".$this->dtDd($this->t('Car Type', $internal_lng), $views[$this->listing->cartype])."</dl>";
    }
    ?>
    <?php if (!empty($this->listing->numberpreviousowner)) {echo "<dl>".$this->dtDd($this->t('Number of previous owners', $internal_lng), $this->listing->numberpreviousowner)."</dl>";}?>
<?php
    if (!empty($this->listing->doors)) {
        $i          = 0;
        $field      = '';
        $views = Model_Listing_Car::getDoors();
        echo "<dl>".$this->dtDd($this->t('Doors', $internal_lng), $this->t($views[$this->listing->doors], $internal_lng))."</dl>";
    }
    ?>
    <?php
    if (!empty($this->listing->poweroptions)) {
        $i          = 0;
        $field      = '';
        $views = Model_Listing_Car::getPowerOptions();
        $to_add     = '';
        foreach ((array)$this->listing->poweroptions as $data) {
            $field .= $to_add . $this->t($views[$data], $internal_lng);
            $i++;
            $to_add = ', ';
        }
        echo "<dl class='desc'>".$this->dtDd($this->t('Power Options', $internal_lng), $field)."</dl>";
    }
    ?>
    <?php
    if (!empty($this->listing->entertainmentfeatures)) {
        $i          = 0;
        $field      = '';
        $views = Model_Listing_Car::getEntertComm();
        $to_add     = '';
        foreach ((array)$this->listing->entertainmentfeatures as $data) {
            $field .= $to_add . $this->t($views[$data], $internal_lng);
            $i++;
            $to_add = ', ';
        }
        echo "<dl class='desc'>".$this->dtDd($this->t('Entertainment Communication Features', $internal_lng), $field)."</dl>";
    }
    ?>
    <?php
    if (!empty($this->listing->interiorcolor)) {
        $i          = 0;
        $field      = '';
        $views = Model_Listing_Car::getIntColor();
        $to_add     = '';
        foreach ((array)$this->listing->interiorcolor as $data) {
            $field .= $to_add . $this->t($views[$data], $internal_lng);
            $i++;
            $to_add = ', ';
        }
        echo "<dl class='desc'>".$this->dtDd($this->t('Interior Color', $internal_lng), $field)."</dl>";
    }
    ?>
    <?php
    if (!empty($this->listing->exteriorcolor)) {
        $i          = 0;
        $field      = '';
        $views = Model_Listing_Car::getExtColor();
        $to_add     = '';
        foreach ((array)$this->listing->exteriorcolor as $data) {
            $field .= $to_add . $this->t($views[$data], $internal_lng);
            $i++;
            $to_add = ', ';
        }
        echo "<dl class='desc'>".$this->dtDd($this->t('Exterior Color', $internal_lng), $field)."</dl>";
    }
    ?>
    <?php
    if (!empty($this->listing->safetyfeatures)) {
        $i          = 0;
        $field      = '';
        $views = Model_Listing_Car::getSafetyFeatures();
        $to_add     = '';
        foreach ((array)$this->listing->safetyfeatures as $data) {
            $field .= $to_add . $this->t($views[$data], $internal_lng);
            $i++;
            $to_add = ', ';
        }
        echo "<dl class='desc'>".$this->dtDd($this->t('Safety Features', $internal_lng), $field)."</dl>";
    }
    ?>
    <?php
    if (!empty($this->listing->drivetype)) {
        $i          = 0;
        $field      = '';
        $views = Model_Listing_Car::getDriveType();
        echo "<dl>".$this->dtDd($this->t('Drive Type', $internal_lng), $this->t($views[$this->listing->drivetype], $internal_lng))."</dl>";
    }
    ?>
    <?php
    if (!empty($this->listing->engine)) {
        $i          = 0;
        $field      = '';
        $views = Model_Listing_Car::getEngine();
        echo "<dl>".$this->dtDd($this->t('Engine', $internal_lng), $this->t($views[$this->listing->engine], $internal_lng))."</dl>";
    }
    ?>
    <?php if (!empty($this->listing->mileage)) {echo "<dl>".$this->dtDd($this->t('Mileage', $internal_lng), $this->listing->mileage . ' Km')."</dl>";}?>
    <?php
    if (!empty($this->listing->transmission)) {
        $i          = 0;
        $field      = '';
        $views = Model_Listing_Car::getTransmission();
        echo "<dl>".$this->dtDd($this->t('Transmission', $internal_lng), $this->t($views[$this->listing->transmission], $internal_lng))."</dl>";
    }
    ?>
    <?php if (!empty($this->listing->horsepower)) {echo "<dl>".$this->dtDd($this->t('Horsepower', $internal_lng), $this->t('__1__ HP', $internal_lng, $this->listing->horsepower))."</dl>";}?>
    <?php
    if (!empty($this->listing->fueleconomy)) {
        $i          = 0;
        $field      = '';
        $views = Model_Listing_Car::getFuelEconomyPostAd();
        echo "<dl>".$this->dtDd($this->t('Fuel Economy', $internal_lng), $this->t($views[$this->listing->fueleconomy], $internal_lng))."</dl>";
    }
    ?>
    <?php
    if (!empty($this->listing->fuel)) {
        $i          = 0;
        $field      = '';
        $views = Model_Listing_Car::getFuel();
        echo "<dl>".$this->dtDd($this->t('Fuel', $internal_lng), $this->t($views[$this->listing->fuel], $internal_lng))."</dl>";
    }
    ?>
<?php $content = trim(ob_get_clean())?>
<?php if (!empty($content)):?>

    <div class="detail category">
        <h2><?php echo $this->t('Car Information', $internal_lng)?></h2>
        
            <?php echo $content ?>
        
    </div>

<?php endif;?>